ca foundation permutations and combinations